package com.yunke.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 轮播图实体类
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yunke_banner")
@Schema(name = "YunkeBanner", description = "轮播图实体")
public class YunkeBanner implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "轮播图ID")
    private Long id;

    @Schema(description = "轮播图标题")
    private String bannerTitle;

    @Schema(description = "轮播图描述")
    private String bannerDesc;

    @Schema(description = "轮播图图片")
    private String bannerImage;

    @Schema(description = "轮播图类型（1首页轮播 2活动轮播 3广告轮播）")
    private Integer bannerType;

    @Schema(description = "显示位置")
    private String displayPosition;

    @Schema(description = "跳转链接")
    private String linkUrl;

    @Schema(description = "跳转类型（1内部页面 2外部链接 3小程序页面）")
    private Integer linkType;

    @Schema(description = "小程序AppId")
    private String miniAppId;

    @Schema(description = "小程序页面路径")
    private String miniPagePath;

    @Schema(description = "显示顺序")
    private Integer displayOrder;

    @Schema(description = "是否启用（0否 1是）")
    private Boolean isEnabled;

    @Schema(description = "开始时间")
    private Long startTime;

    @Schema(description = "结束时间")
    private Long endTime;

    @Schema(description = "目标用户（1全部 2新用户 3老用户 4VIP用户）")
    private Integer targetUser;

    @Schema(description = "显示条件（JSON格式）")
    private String displayCondition;

    @Schema(description = "点击统计")
    private Integer clickCount;

    @Schema(description = "浏览统计")
    private Integer viewCount;

    @Schema(description = "广告主名称")
    private String advertiserName;

    @Schema(description = "广告费用")
    private String advertisingFee;

    @Schema(description = "扩展信息（JSON格式）")
    private String extraInfo;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "状态（0正常 1删除）")
    private Integer status;

    @Schema(description = "创建时间")
    private Long createTime;

    @Schema(description = "更新时间")
    private Long updateTime;
} 